﻿using System;

namespace KWatkins.FluentMoqBuilder.Argument
{
	internal sealed class GuidValidation : ArgumentValidation<Guid>, IGuid
	{
		internal GuidValidation(Guid argument, string parameterName)
			: base(argument, parameterName)
		{
		}

		#region IGuid Members
		void IGuid.IsNotEmpty()
		{
			if (Argument == Guid.Empty)
			{
				throw new ArgumentException("Value cannot be empty.", ParameterName);
			}
		}
		#endregion
	}
}
